package cn.tedu.submarine2;

import cn.tedu.submarine2.EnemyScore;
import cn.tedu.submarine2.Images;
import cn.tedu.submarine2.SeaObject;

import javax.swing.*;

/**
 * 鱼雷潜艇类
 */
public class TorpedoSubmarine extends SeaObject implements EnemyScore {

    public TorpedoSubmarine() {
        super(64,20);
    }

    public void move() {
        x += speed;
    }

    public ImageIcon getImage() {
        return Images.torpesubm;
    }

    public int getScore(){
        return 40;
    }
}
